<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	String baseInfoJson = (String) request.getAttribute("baseInfoJson");
	String basicInfoJson = (String) request.getAttribute("basicInfoJson");
	String respondResultJson = (String) request.getAttribute("respondResultJson");
%>
<link rel="stylesheet"
	href="${basePath}assets/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css" />
<link rel="stylesheet"
	href="${basePath}assets/css/coding_attached/edit_index_info.css" />

<script type="text/javascript"
	src="${basePath}assets/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/layer/layer.js"></script>
<script type="text/javascript"
	src="${basePath}assets/cityselect/cityselect/cityselect.js"></script>
<script type="text/javascript" src="${basePath}assets/js/header.js"></script>

<script type="text/javascript" src="${basePath}assets/js/iframe.js"></script>
<script type="text/javascript"
	src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.data.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.js"></script>
<script src="${basePath}assets/distpicker/js/main.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/jquery.validate.js"></script>

<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/localization/messages_zh.js"></script>
<script type="text/javascript"
	src="${basePath}assets/js/coding_attached/edit_medical_quality_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action="${basePath}medical_record_coding/edit_basic_info"
	method="post" id="basicInfoForm">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<table style="width:100%;">
		<tbody>
			<!-- <tr>
				<td colspan="6"><input type="submit" value="保存" class="btn"
					disabled="disabled"></td>
			</tr> -->
			<tr>
				<td class="tdLabel_7 redColor">住院号</td>
				<td class="tdLabel_8"><input type="text" name="onlyId"
					value="${basicInfo.onlyId }" readonly="readonly" /></td>

				<td class="tdLabel_7 redColor">病案号</td>
				<td class="tdLabel_8"><input type="text" name="mrId"
					value="${basicInfo.mrId }" readonly="readonly" /></td>
				<td class="tdLabel_7 redColor">住院次数</td>
				<td class="tdLabel_8"><input type="text" name="visitNumber"
					value="${basicInfo.visitNumber }" readonly="readonly" /></td>
			</tr>
			<tr>
				<td class="tdLabel_7 redColor">姓名</td>
				<td class="tdLabel_8"><input type="text" name="patientName"
					value="${basicInfo.patientName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel_7">HBsAg</td>
				<td class="tdLabel_8"><select name="hbsAgeResultCode"
					data-type="hivCheckResult">
				</select> <input type="hidden" name="hbsAgeResultName"></td>

				<td class="tdLabel_7">HCV-Ab</td>
				<td class="tdLabel_8"><select name="hcvAbResultCode"
					data-type="hivCheckResult">
				</select> <input type="hidden" name="hcvAbResultName"></td>
				<td class="tdLabel_7">HIV-Ab</td>
				<td class="tdLabel_8"><select name="hivAbResultCode"
					data-type="hivCheckResult">
				</select> <input type="hidden" name="hivAbResultName"></td>
			</tr>

			<tr>
				<td class="tdLabel_7">传染病报卡</td>
				<td class="tdLabel_8"><select name="infectiousDiseaseReportedCardCode"
					data-type="diseaseReportedCard">
				</select> <input type="hidden" name="infectiousDiseaseReportedCardName"></td>

				<td class="tdLabel_7">恶性肿瘤报卡</td>
				<td class="tdLabel_8"><select name="malignantTumorReportedCardCode"
					data-type="diseaseReportedCard">
				</select> <input type="hidden" name="malignantTumorReportedCardName"></td>
				<td class="tdLabel_7">慢病报卡</td>
				<td class="tdLabel_8"><select name="chronicDiseaseReportedCardCode"
					data-type="diseaseReportedCard">
				</select> <input type="hidden" name="chronicDiseaseReportedCardName"></td>
			</tr>

			<tr>
				<td class="tdLabel_7" rowspan="2">随诊情况</td>
				<td class="tdLabel_8">
					本院首例诊断:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8">
					本院首例检查:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8">
					本院首例治疗:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8">
					本院首例手术:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				
			</tr>
			<tr>
				<td class="tdLabel_8">
					示教病例:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8">
					科研病例:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8" colspan="2">
					随诊:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="0"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
						期限: 
					<input type="text" style="width: 35px;" name="followUpClinicDayNumber"
						value="${cureInfo.followUpClinicDayNumber }">
						天
						<input type="text" style="width: 35px;" name="followUpClinicWeekNumber"
						value="${cureInfo.followUpClinicWeekNumber }">
						周
						<input type="text" style="width: 35px;" name="followUpClinicMonthNumber"
						value="${cureInfo.followUpClinicMonthNumber }">
						月
						<input type="text" style="width: 35px;" name="followUpClinicYearNumber"
						value="${cureInfo.followUpClinicYearNumber }">
						年
					</td>
			</tr>
			<tr>
				<td class="tdLabel_7">距上一次住本院的时间间隔</td>
				<td class="tdLabel_8"><select name="zyjgCode">
				</select> <input type="hidden" name="zyjgName"></td>
				<td class="tdLabel_8" colspan="2">
					本次住院与上一次住院是否因统一疾病（主要诊断）:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				
				<td class="tdLabel_8">
					非计划再次住院:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
			</tr>
			
			<tr>
				<td class="tdLabel_7">入院病情评估情况</td>
				
				<td class="tdLabel_8">
					危重病例:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				
				<td class="tdLabel_8">
					疑难病例:
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
			</tr>
			<tr>
				<td class="tdLabel_7">抢救次数</td>
				<td class="tdLabel_8">
					<input type="text" name="rescueNumber" value="${cureInfo.rescueNumber }">
				</td>
				<td class="tdLabel_7">抢救成功次数</td>
				<td class="tdLabel_8">
					<input type="text" name="rescueSucceedNumber" value="${cureInfo.rescueSucceedNumber }">
				</td>
			</tr>
			
			<tr>
				<td class="tdLabel_7" colspan="2" >诊断情况</td>
				
				<td class="tdLabel_8">
					出院主要诊断选择是否正确
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_7">出院主要诊断准确程度</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare1">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				
			</tr>
			<tr>
				<td class="tdLabel_7">门诊与出院</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare2">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				<td class="tdLabel_7">入院与出院</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare2">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				<td class="tdLabel_7">术前与术后</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare2">
				</select> <input type="hidden" name="diagCompare1Name"></td>
			</tr>
			<tr>
				<td class="tdLabel_7">临床与病理</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare3">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				<td class="tdLabel_7">放射与病理</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="diagCompare3">
				</select> <input type="hidden" name="diagCompare1Name"></td>
			</tr>
			
			<tr>
				
				<td class="tdLabel_8">
					住院期间是否使用抗菌药物
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_8">
					是否联合使用抗菌药物
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
				<td class="tdLabel_7">住院期间使用抗菌药物时长（天）</td>
				<td class="tdLabel_8">
					<input type="text" name="rescueSucceedNumber" value="${cureInfo.rescueSucceedNumber }">
				</td>
				<td class="tdLabel_7">联合使用抗菌药物数量</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="jkDrug1">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				
			</tr>
			<tr>
				<td class="tdLabel_7">抗菌药物使用前是否微生物样本送检</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="129Select">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				<td class="tdLabel_7">使用特殊使用级抗菌药物是否会诊</td>
				<td class="tdLabel_8"><select name="diagCompare1Code" data-type="129Select">
				</select> <input type="hidden" name="diagCompare1Name"></td>
				<td class="tdLabel_8">
					是否使用特殊使用级抗菌药物
					<input type="radio"
						class="radio_cl" name="followUpClinicLimitCode" title="是 " value="1"/>
						是 
					<input type="radio" class="radio_cl" name="followUpClinicLimitCode" title="否" value="2"/>
						否 
					<input type="hidden" name="followUpClinicLimitName" value=""/>
				</td>
			</tr>
			
		</tbody>
	</table>
</form>

<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		var basicInfoJson = <%=basicInfoJson%>
		var respondResultJson = <%=respondResultJson%>
		if(respondResultJson){
			if(respondResultJson.success){
				layer.msg("保存成功",{offset: '350px'});
			}else{
				layer.msg("保存失败",{offset: '350px'});
			}
		}
		console.log(baseInfoJson);
		console.log(basicInfoJson);
		initPage(baseInfoJson,basicInfoJson);
		
	});
</script>